<template>
  <div class="collect-page">
    <van-nav-bar fixed title="我的收藏" />
    <article-item
      v-for="item in list"
      :key="item.id"
      :item="item"
      :article="item"
    />
  </div>
</template>
  <script>
import ArticleItem from "@/components/ArticleItem.vue";
import { getCollectAndLikeAPI } from "@/api/artical";
export default {
  components: { ArticleItem },
  data() {
    return {
      list: [],
    };
  },
  async created() {
    const res = await getCollectAndLikeAPI(1);
    console.log(res.data.data.rows);
    this.list = res.data.data.rows;
  },
};
</script>
  <style lang="less" scoped>
.collect-page {
  margin-bottom: 50px;
  margin-top: 44px;
}
</style>